<?php 
namespace Admin\Model;
use \Think\Model;

class StudentModel extends Model{

	protected $fields = array('id', 'name', 'sex', 'age', 'grade');
	protected $pk = 'id';
	protected $_map = array(
		'username' =>'name', // 把表单中name映射到数据表的username字
		);
	//protected $tableName = 'student';

	/*
	public function select(){
		echo "select....<br>";
	}
	*/
}

 ?>